<?php
namespace Home\Model;
use Think\Model;
//goods表操作类
class AdvsModel extends Model{
   //一号位广告查询
   public function advs_one(){
    $address = '0';
    $status = '1';
    $map['status'] = ['eq',$status];
    $map['address'] = ['eq',$address];
    $list = $this->where($map)->limit(3)->select();
    return $list;
   }
   //二号位广告查询
   public function advs_two(){
    $address ='1';
    $status = '1';
    $map['status'] = ['eq',$status];
    $map['address'] = ['eq',$address];
    $list = $this->where($map)->find();
    return $list;
   }
}